package top.codehelen.common.constants;

public enum ReturnCodeEnum {

    SUCCESS(0, "成功"),

    SYSTEM_ERROR(1, "未知错误"),

    INCORRECT_ARGUMENT(2, "参数错误"),

    PERMISSION_DENIED(3, "权限不足"),
    ;

    int code;

    String msg;

    ReturnCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
